import {RegisterRequest} from "../models/request/User";
import prisma from "../config/Prisma";

export default class UserService {

    static async register(data: RegisterRequest): Promise<number> {
        // TODO: 注册用户
        const user = await prisma.user.create({ data });
        return user.id;
    }
}